import { screen } from 'electron'

const getConfig = function(){
  let { width, height } = screen.getPrimaryDisplay().workAreaSize;
  const toolBarWidth = 500;
  const mainWidth = width - toolBarWidth;
  const mainHeight = height - 38;

  const config = {
    width,
    height,
    mainWidth,
    mainHeight,
    toolBarWidth
  }

  return config;
}

export default getConfig